/* 队列页面样式 */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.18);
  border: none;
  outline: none;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 主容器 */
.main-container {
  flex: 1;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* 队列布局 - 左右分栏 */
.queue-layout {
  flex-direction: row !important;
}

/* 左侧子菜单 */
.queue-sidebar {
  width: 120px;
  background: #f5f7fa;
  border-right: 1px solid #e8e8e8;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.queue-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px;
}

.queue-menu-item {
  padding: 12px 16px;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

.queue-menu-item:hover {
  background: rgba(24, 144, 255, 0.08);
  color: #1890ff;
}

.queue-menu-item.active {
  background: #1890ff;
  color: #fff;
  font-weight: 500;
}

/* 右侧主内容区 */
.queue-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 队列头部 */
.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #e8e8e8;
}

.queue-tabs {
  display: flex;
  gap: 24px;
}

.queue-tab {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.queue-tab:hover {
  color: #1890ff;
}

.queue-tab.active {
  color: #1890ff;
  border-bottom-color: #1890ff;
  font-weight: 500;
}

.queue-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  padding: 6px 16px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.3s;
}

.action-btn:hover {
  color: #1890ff;
  border-color: #1890ff;
}

/* 文件区域标题 */
.files-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  font-size: 13px;
  color: #999;
}

.section-title {
  font-size: 13px;
  color: #666;
}

.section-actions {
  display: flex;
  gap: 120px;
}

.section-action {
  font-size: 13px;
  color: #999;
}

/* 名称标签向左移动460px */
.section-action:first-child {
  transform: translateX(-460px);  /* 向右移动200px (-660+200=-460) */
}

/* 状态标签向左移动50px */
.section-action:nth-child(2) {
  transform: translateX(-50px);
}

/* 操作标签离末尾56px（向右移动24px） */
.section-action:last-child {
  margin-right: 56px;
}

/* 队列内容 */
.queue-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.empty-icon {
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-icon svg {
  display: block;
}

.empty-text {
  font-size: 14px;
  color: #999;
}

/* 传输列表 */
.transfer-list {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

/* 传输项 */
.transfer-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
  transition: all 0.2s;
}

.transfer-item:last-child {
  border-bottom: none;
}

.transfer-item:hover {
  background: #fafafa;
}

.transfer-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.transfer-name {
  flex: 1;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 200px;
}

.transfer-size {
  font-size: 13px;
  color: #666;
  margin-right: 16px;
  flex-shrink: 0;
  min-width: 90px;
  text-align: right;
}

.transfer-status {
  font-size: 13px;
  color: #1890ff;
  flex-shrink: 0;
  min-width: 100px;
  text-align: right;
  margin-right: 8px;
}

.transfer-status.completed {
  color: #52c41a;
}

.transfer-status.failed {
  color: #ff4d4f;
}

.transfer-status.paused {
  color: #faad14;
}

.transfer-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

.transfer-action-btn {
  padding: 4px 12px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: all 0.3s;
}

.transfer-action-btn:hover {
  color: #1890ff;
  border-color: #1890ff;
}

/* 操作按钮（蓝色文字样式） */
.transfer-action {
  font-size: 13px;
  color: #1890ff;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  user-select: none;
  -webkit-user-select: none;
}

.transfer-action:hover {
  color: #40a9ff;
  background: rgba(24, 144, 255, 0.08);
}

.transfer-action:active {
  color: #096dd9;
}

/* 滚动条样式 */
.queue-content::-webkit-scrollbar {
  width: 8px;
}

.queue-content::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.queue-content::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}

.queue-content::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}
